LearningStoreXml.CreateAndLoad Method

Creates a new instance of the LearningStoreXml class and loads some XML data into it.

Parent Type: LearningStoreXml

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public static LearningStoreXml CreateAndLoad (
XmlReader reader

)

Parameters

reader

System.Xml.XmlReader containing the XML data to be read into the object.

Return Value

A new LearningStoreXml

Exceptions
Exception type Condition
ArgumentNullException

reader is a null reference.

Example

The following code creates a LearningStoreXml object from an XmlDocument:

C#
XmlNodeReader reader = new XmlNodeReader(document);
LearningStoreXml xml = LearningStoreXml.CreateAndLoad(reader);